package com.column;
import java.io.File;
public class Main47 {
    public static void main(String[] args){
        File file = new File("D:\\ex01\\Java\\src\\com\\column\\Main47.java");
        String strParentDirectory=file.getParent();
        System.out.println("文件的上级目录为："+ strParentDirectory);
    }
}
